up:
	mkdir -p /var/lib/storageos
	docker-compose up -d 


down:
	docker-compose down

cli:
	curl -sSL https://github.com/storageos/go-cli/releases/download/v0.0.10/storageos_linux_amd64 > /usr/local/bin/storageos
	chmod +x /usr/local/bin/storageos
	export STORAGEOS_USERNAME=storageos STORAGEOS_PASSWORD=storageos

kubeup:
	for i in storageos-secret.yaml  storageos-sc.yaml  storageos-sc-pvc.yaml;do \
		kubectl create -f $$i; \
	done

kubedown:
	for i in storageos-sc-pvc.yaml  storageos-sc.yaml  storageos-secret.yaml;do \
		kubectl delete -f $$i; \
	done
	

#crtvol:
#	storageos volume create --namespace default --size 2 --fstype ext4 yzhvol
#
#mntvol:
#	mkdir -p /mnt/storageos/yzhvol
#	storageos volume mount default/yzhvol /mnt/storageos/yzhvol
#
#umntvol:
#	storageos volume unmount default/yzhvol
#
#rmvol:
#	storageos volume unmount default/yzhvol
#	storageos volume rm default/yzhvol
